﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using House.Server.Dto;
using House.Server.Repository;
namespace House.Server.Service
{
    public class System_PersonalService : BaseService<System_PersonalRepostitory, Personal>
    {
        System_PersonalRepostitory dal = new System_PersonalRepostitory();
        public bool TrueOrFalse(int id)
        {
            Personal Personal = dal.SelectById(id);
            Personal.P_state = 2;
            bool TrueOrFalse=dal.Update(Personal);
            return TrueOrFalse;
        }
    }

}
